cd /data/xframe/jar
REGISTER_APP_NAME=est-register.jar
GATEWAY_APP_NAME=xframe-gateway.jar
MODULE_CONFIG_APP=xframe-module-config-biz.jar
ADMIN_APP_NAME=xframe-admin.jar
IMPORT_APP_NAME=xframe-file-io.jar
WH_APP_NAME=xframe-warehouse.jar
REGISTER_LOG_FILE=/data/xframe/log/est-register.log
GATEWAY_APP_LOG_FILE=/data/xframe/log/xframe-gateway.log
ADMIN_LOG_FILE=/data/xframe/log/xframe-admin.log
MODULE_CONFIG_LOG_FILE=/data/xframe/log/xframe-module-config.log
IMPORT_APP_NAME_LOG_FILE=/data/xframe/log/xframe-file-io.log
WH_APP_NAME_LOG_FILE=/data/xframe/log/xframe-warehouse.log

#pid=`ps -ef|grep $REGISTER_APP_NAM | grep -v grep | awk '{print $2}'`
#kill -9 $pid
#echo "$pid进程终止成功"
#sleep 2
#nohup java -jar $REGISTER_APP_NAM >> $REGISTER_LOG_FILE 2>&1 &
#echo "REGISTER启动成功"
#sleep 2
pid=`ps -ef|grep $GATEWAY_APP_NAME | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"
sleep 2
nohup java -jar $GATEWAY_APP_NAME >> $GATEWAY_APP_LOG_FILE 2>&1 &
echo "GATEWAY启动成功"
sleep 2
pid=`ps -ef|grep $ADMIN_APP_NAME | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"
sleep 2
nohup java -jar $ADMIN_APP_NAME >> $ADMIN_LOG_FILE 2>&1 &
echo "ADMIN启动成功"
sleep 2
pid=`ps -ef|grep $MODULE_CONFIG_APP | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"
sleep 2
nohup java -jar $MODULE_CONFIG_APP >> $MODULE_CONFIG_LOG_FILE 2>&1 &
echo "MODEL_CONFIG启动成功"
sleep 2
pid=`ps -ef|grep $IMPORT_APP_NAME | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"
sleep 2
nohup java -jar $IMPORT_APP_NAME >> $IMPORT_APP_NAME_LOG_FILE 2>&1 &
echo "xframe-file-io启动成功"
sleep 2
pid=`ps -ef|grep $WH_APP_NAME | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"
nohup java -jar $WH_APP_NAME >> $WH_APP_NAME_LOG_FILE 2>&1 &
echo "xframe-warehouse.jar启动成功"
echo "执行成功"
